import http from "@/utils/http";

/** 权限角色 */
export class LoginApi {
   /** 管理员注册 */
   static readonly AdminSignIn = (params: Login.Admin) => http.post<Login.Result>("/api/login/admin", params);

   /** 密码登录 */
   static readonly Password = (params: Login.Password) => http.post<Login.Result>("/api/login/password", params);

   /** 短信验证登录 */
   static readonly Message = (params: Login.Message) => http.post<Login.Result>("/api/login/message", params);

   /** 退出登录 */
   static readonly Out = () => http.post("/api/login/out");
}
